package classtst_domain;

import java.util.Random;

/**
 * @version 1.0
 * @auther liquan
 * @date 2025/3/17 19:48
 * @description
 */
public class Circle {
    // 属性 半径r
    public double r;
    // 行为
    // 求圆周长
    public void showArea(){
        double area = 2 * 3.14 * r;
        System.out.println("area = " + area);
    }
    // 求圆面积
    public void showPerimeter(){
        double perimeter = 3.14 * r * r;
        System.out.println("perimeter = " + perimeter);
    }
}
